package com.example.exerciseextract2.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.exerciseextract2.R;
import com.example.exerciseextract2.base.BaseRlvAdapter;
import com.example.exerciseextract2.bean.RvBean;

import java.util.ArrayList;

/**
 * Created by 阿炜啊 on 2020/7/12.
 */

public class RvAdapter extends BaseRlvAdapter<RvBean.DataBean.DatasBean> {
    public RvAdapter(Context context, ArrayList list) {
        super(context, list);
    }
    @Override
    protected int getLayout() {
        return R.layout.rv;
    }

    @Override
    protected void bindData(BaseViewHolder holder, RvBean.DataBean.DatasBean datasBean) {
        holder.setText(R.id.tv_rv,datasBean.getTitle());
    }
}
